home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / KeyTranslation.a < prev    next >
Text File  |  1996-05-01  |  2KB  |  68 lines

  1. ;
  2. ;    File:        KeyTranslation.a
  3. ;
  4. ;    Version:    Technology:    System 8.0
  5. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  6. ;
  7. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  8. ;
  9. ;    Bugs?:        If you find a problem with this file, send the file and version
  10. ;                information (from above) and the problem description to:
  11. ;
  12. ;                    Internet:    apple.bugs@applelink.apple.com
  13. ;                    AppleLink:    APPLE.BUGS
  14. ;
  15. ;
  16.     IF &TYPE('__KEYTRANSLATION__') = 'UNDEFINED' THEN
  17. __KEYTRANSLATION__ SET 1
  18.  
  19.     IF &TYPE('__KEYBOARD__') = 'UNDEFINED' THEN
  20.     include 'Keyboard.a'
  21.     ENDIF
  22.     IF &TYPE('__LOCALEOBJECTS__') = 'UNDEFINED' THEN
  23.     include 'LocaleObjects.a'
  24.     ENDIF
  25.     IF &TYPE('__TEXTINPUTSYSTEM__') = 'UNDEFINED' THEN
  26.     include 'TextInputSystem.a'
  27.     ENDIF
  28.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  29.     include 'Types.a'
  30.     ENDIF
  31.     IF FOR_SYSTEM8_COOPERATIVE THEN
  32.  
  33.  
  34. ; typedef LocaleObjectRef                 KeyTranslationObjectRef
  35.  
  36. ;
  37. ; extern OSStatus NewKeyTranslationContext(KeyTranslationContextRef *contextRef, KeyTranslationObjectRef translationObject)
  38. ;
  39.     IF GENERATINGCFM THEN
  40.         IMPORT_CFM_FUNCTION NewKeyTranslationContext
  41.     ENDIF
  42.  
  43. ;
  44. ; extern OSStatus DisposeKeyTranslationContext(KeyTranslationContextRef *contextRef)
  45. ;
  46.     IF GENERATINGCFM THEN
  47.         IMPORT_CFM_FUNCTION DisposeKeyTranslationContext
  48.     ENDIF
  49.  
  50. ;
  51. ; extern OSStatus TranslateVirtualKeyCode(KeyTranslationContextRef contextRef, VirtualKeyCode keycode, UInt16 *character)
  52. ;
  53.     IF GENERATINGCFM THEN
  54.         IMPORT_CFM_FUNCTION TranslateVirtualKeyCode
  55.     ENDIF
  56.  
  57. ;
  58. ; extern OSStatus TranslateVirtualKeyCodeBuffer(KeyTranslationContextRef contextRef, const VirtualKeyCode *keycodeBuffer, UInt32 keycodeBufferSize, UInt16 *characterBuffer, UInt32 characterBufferSize)
  59. ;
  60.     IF GENERATINGCFM THEN
  61.         IMPORT_CFM_FUNCTION TranslateVirtualKeyCodeBuffer
  62.     ENDIF
  63.  
  64.     ENDIF
  65. ;  FOR_SYSTEM8_COOPERATIVE
  66.     ENDIF ; __KEYTRANSLATION__ 
  67.  
  68.